clear;
clc;

% 原始数据
% 定义点的矩阵
data = [
120.0798731, 36.2145540;
120.0798727, 36.2145878;
120.0798691, 36.2147369;
120.0798704, 36.2148266;
120.0798666, 36.2149941;
120.0798702, 36.2150556;
120.0799665, 36.2151995;
120.0800735, 36.2152122;
120.0803003, 36.2152075;
120.0804195, 36.2152077;
120.0806738, 36.2152321;
120.0808130, 36.2152138;
120.0811125, 36.2152301;
120.0812183, 36.2152231;
120.0813196, 36.2152221;
120.0813945, 36.2152216;
120.0817031, 36.2152380;
120.0818737, 36.2152203;
120.0822271, 36.2152360;
120.0824130, 36.2152341;
120.0827028, 36.2152463;
120.0828165, 36.2151302;
120.0828221, 36.2148176;
120.0828215, 36.2146768;
120.0826709, 36.2144438;
120.0825218, 36.2144607;
120.0822536, 36.2143846;
120.0822430, 36.2142617;
120.0822318, 36.2139574;
120.0821185, 36.2138604;
120.0817777, 36.2139214;
120.0816128, 36.2138886;
120.0813167, 36.2139134;
120.0811458, 36.2138908;
120.0808081, 36.2138886;
120.0806702, 36.2138869;
120.0804512, 36.2137120;
120.0804207, 36.2135144;
120.0804241, 36.2132474;
120.0804107, 36.2131531;
120.0800923, 36.2131390;
120.0799132, 36.2130884;
120.0798957, 36.2127936;
120.0798425, 36.2126807;
120.0800862, 36.2125850;
120.0803220, 36.2125908;
120.0806090, 36.2125441;
120.0805893, 36.2124032;
120.0805881, 36.2121238;
120.0805778, 36.2119692;
120.0806126, 36.2116986;
120.0806189, 36.2115951;
120.0806981, 36.2114123;
120.0808794, 36.2114136;
120.0811905, 36.2114680;
120.0811971, 36.2116097;
120.0812043, 36.2118247;
120.0812192, 36.2119332;
120.0812268, 36.2121852;
120.0812186, 36.2123116;
120.0812162, 36.2125434;
120.0813512, 36.2125793;
120.0816996, 36.2125837;
120.0818490, 36.2126140;
120.0818611, 36.2128108;
120.0818568, 36.2129805;
120.0816402, 36.2131116;
120.0814884, 36.2131188;
120.0811783, 36.2131273;
120.0809838, 36.2131298;
120.0806500, 36.2131143;
120.0804959, 36.2131234;
120.0804320, 36.2133149;
120.0804311, 36.2134676;
120.0804466, 36.2136908;
120.0804383, 36.2137132;
120.0804388, 36.2138193;
120.0804340, 36.2139448;
120.0804311, 36.2141698;
120.0804268, 36.2142598;
120.0804641, 36.2144208;
120.0806430, 36.2144221;
120.0809290, 36.2144316;
120.0810289, 36.2144034;
120.0812604, 36.2143681;
120.0813390, 36.2143739;
120.0816030, 36.2144006;
120.0817426, 36.2144165;
120.0820242, 36.2144223;
120.0821666, 36.2144248;
120.0824328, 36.2144521;
120.0825444, 36.2144588;
120.0827367, 36.2144943;
120.0827792, 36.2145919;
120.0828073, 36.2148073;
120.0828108, 36.2149337;
120.0827599, 36.2151476;
120.0826768, 36.2152325;
120.0824718, 36.2152433;
120.0822156, 36.2152483;];

% 图片展示
figure;
subplot(1,1,1);
plot(data(:,1), data(:,2), 'b--x','DisplayName', '原始数据'); % 原始数据
title('图显数据');
xlabel('X');
ylabel('Y');
legend;

% subplot(2,1,2);
% plot(W(:,1), W(:,2), 'b--x','DisplayName', '原始数据'); % 原始数据
% title('图显数据');
% xlabel('X');
% ylabel('Y');
% legend;
% n = size(data,1);
% for i = 1:n
%     fprintf('studio_line_c_add_point(&line, studio_point_init(%.7f, %.7f));\n',data(i,1),data(i,2));  % 转置 A 并按行输出
% end
